﻿@model ContactManagement.Models.DynamicData.DynamicDataAddModel
@{
    ViewBag.Title = Resources.PageTitles.CreateDynamicDataTypeRESX;
}
<h2>
    @Resources.PageTitles.CreateDynamicDataTypeRESX</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    <div>
    @Html.ValidationSummary(true)
    @Html.ShowCustomMessage()
    </div>
    <p>
    @Resources.AdminViews.CreateDynamicDataTypesHelpRESX
    </p>
    <fieldset>
        <legend>@Resources.PageTitles.AddRESX</legend>
        <div class="view-item">
            <div class="editor-label">
                @Html.LabelFor(model => model.Name)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </div>
        </div>
        <div class="clear-all" ></div>
        <div class="view-item">
            <div class="editor-label">
                @Html.LabelFor(model => model.Modules)
            </div>
            <div class="editor-field">
                @Html.DropDownListFor(model => model.ModulId, Model.Modules, Resources.GlobalStrings.PleaseSelectItemsRESX)
                @Html.ValidationMessageFor(model => model.ModulId)
            </div>
        </div>
        <div class="clear-all" ></div>
        <div class="view-item">
            <div class="editor-label">
                @Html.LabelFor(model => model.DynamicDataTypes)
            </div>
            <div class="editor-field">
                @Html.DropDownListFor(model => model.DynamicDataTypeId, Model.DynamicDataTypes, Resources.GlobalStrings.PleaseSelectItemsRESX)
                @Html.ValidationMessageFor(model => model.DynamicDataTypeId)
            </div>
        </div>
        <div class="clear-all" ></div>
        <div class="view-item">
            <div class="editor-label">
                @Html.LabelFor(model => model.DynamicDataTypeCategories)
            </div>
            <div class="editor-field">
                @Html.DropDownListFor(model => model.DynamicDataTypeCategoryId, Model.DynamicDataTypeCategories, Resources.GlobalStrings.PleaseSelectItemsRESX)
                @Html.ValidationMessageFor(model => model.DynamicDataTypeCategoryId)
            </div>
        </div>
        <div class="clear-all" ></div>
        <p>
            <input type="submit" value="@Resources.Navigation.CreateRESX" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink(@Resources.Navigation.BackToListRESX, EActionDynamicData.DynamicDataTypesList.ToString())
</div>
